/*
 *  Copyright (C) 2010 Fabien Renaud
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.boc.botv.common;

/**
 * Représente le statut d'un compte utilisateur
 * @author Fabien Renaud
 */
public class UserStatus {
  /**
   * Utilisateur non activé
   */
  public final static int disabled = 0;
  /**
   * Utilisateur banni
   */
  public final static int banned   = 1;
  /**
   * Utilisateur activé
   */
  public final static int enabled  = 2;

  /**
   * Représente sous forme d'une chaine de caractère un statut
   * @param userStatus Le statut de l'utilisateur
   * @return Une chaine de caractère représentant le statut
   */
  public static String toString(int userStatus) {
    switch (userStatus) {
      case UserStatus.disabled: return "Inactif";
      case UserStatus.enabled : return "Activé";
      case UserStatus.banned  : return "Banni";
    }
    
    return "Statut inconnu";
  }
}
